package cn.iune.backcenter.author;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.*;

import com.justep.baas.data.RowState;


/**
 * The persistent class for the sa_opauthorize database table.
 * 
 */
@Entity
@Table(name="SaOpauthorize")
@NamedQuery(name="SaOpauthorize.findAll", query="SELECT s FROM SaOpauthorize s")
public class SaOpauthorize implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length=32)
	private String sID;
	@Column(length=32)
	private String sAuthorizeRoleID;//授权角色
	@Column(length=1024)
	private String sDescription;//描述（角色名称）
	
	@Column(length=65)
	private String sOrgID;//组织
	@Column(length=255)
	private String sOrgName;//组织名
	@Column(length=2048)
	private String sOrgFID;//组织全路径ID
	@Column(length=2048)
	private String sOrgFName;//组织全路径名

	@Column(length=256)
	private String sCreatorFID;//授权人
	@Column(length=256)
	private String sCreatorFName;//授权人
	private Timestamp sCreateTime;//授权时间

	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}

	public String getsID() {
		return sID;
	}

	public void setsID(String sID) {
		this.sID = sID;
	}

	public String getsAuthorizeRoleID() {
		return sAuthorizeRoleID;
	}

	public void setsAuthorizeRoleID(String sAuthorizeRoleID) {
		this.sAuthorizeRoleID = sAuthorizeRoleID;
	}

	public Timestamp getsCreateTime() {
		return sCreateTime;
	}

	public void setsCreateTime(Timestamp sCreateTime) {
		this.sCreateTime = sCreateTime;
	}

	public String getsCreatorFID() {
		return sCreatorFID;
	}

	public void setsCreatorFID(String sCreatorFID) {
		this.sCreatorFID = sCreatorFID;
	}

	public String getsCreatorFName() {
		return sCreatorFName;
	}

	public void setsCreatorFName(String sCreatorFName) {
		this.sCreatorFName = sCreatorFName;
	}

	public String getsDescription() {
		return sDescription;
	}

	public void setsDescription(String sDescription) {
		this.sDescription = sDescription;
	}

	public String getsOrgFID() {
		return sOrgFID;
	}

	public void setsOrgFID(String sOrgFID) {
		this.sOrgFID = sOrgFID;
	}

	public String getsOrgFName() {
		return sOrgFName;
	}

	public void setsOrgFName(String sOrgFName) {
		this.sOrgFName = sOrgFName;
	}

	public String getsOrgID() {
		return sOrgID;
	}

	public void setsOrgID(String sOrgID) {
		this.sOrgID = sOrgID;
	}

	public String getsOrgName() {
		return sOrgName;
	}

	public void setsOrgName(String sOrgName) {
		this.sOrgName = sOrgName;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

}